package com.zzyl.serve.domain.member;

import com.baomidou.mybatisplus.annotation.*;
import com.zzyl.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 老人与家属关联实体类
 *
 * @author liuyp
 * @date 2025-08-21
 */
@Data
@TableName("family_member_elder")
public class FamilyMemberElder {

//    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建人id
     */
    @TableField("create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 老人id
     */
    @TableField("elder_id")
    private Long elderId;

    /**
     * 家属id
     */
    @TableField("family_member_id")
    private Long familyMemberId;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 更新人id
     */
    @TableField("update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}